package com.hspedu.mhl.service;

import com.hspedu.mhl.dao.employDAO;
import com.hspedu.mhl.domain.employ;

/**
 * @author 吴宇~
 * @motto 我亦无他，唯手熟尔。
 * @edition jdk1.8
 * @reflection 0-1 喧闹任其喧闹，自由我自为之，我自风情万种，与世无争。
 * @date 2023/04/05/19:13
 */

/**
 * 该类完成对employ表的各种操作
 */
public class EmployService {
    private employDAO employDa0 = new employDAO();

    public employ getEmployByIdAndPwd(String empId, String pwd) {
        employ employ = employDa0.querySingle("select *from employ where empId=? and pwd =md5(?)", employ.class, empId, pwd);
        return employ;
    }
}
